<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<html>
<head>
    <title>测试forward动作标记</title>
</head>
<body>
随机产生一个成绩（0-100）,判断其结果是否及格。
<%
    request.setCharacterEncoding("utf-8");
    int r = (int) (Math.random() * 100);
    if (r < 60) {
%>

<jsp:forward page="ForwardDemo.jsp">
    <jsp:param value="再接再励哦!" name="score"/>
</jsp:forward>
<%
} else {
%>
<jsp:forward page="ForwardDemo.jsp">
    <jsp:param value="恭喜，你及格了!" name="score"/>
</jsp:forward>
<%
    }
    out.println("本页面结束，但是看不到此行代码");
%>
</body>
</html>

